package org.toonWatch

class Transaction {
    
    static belongsTo = [ tempCart : TempCart]
    
    Integer quantity
    Double price
    Date date
    String item_id
        
    static constraints = {
        quantity(maxSize:3, nullable:false) //if quantity > 8, contact admin
        price(nullable:false)
        date(nullable:false)
        item_id(nullable:false)
    }
}
